﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

using RpgLibrary.ItemClasses;
using XRpgLibrary.SpriteClasses;

namespace XRpgLibrary.ItemClasses
{
    public class ItemSprite
    {
        #region Field Region
        
        BaseSprite sprite;
        BaseItem item;
        protected SpriteBatch spriteBatch;

        #endregion
        
        #region Property Region
        
        public BaseSprite Sprite
        {
            get { return sprite; }
        }
        
        public BaseItem Item
        {
            get { return item; }
        }
        
        #endregion
        
        #region Constructor Region
        
        public ItemSprite(BaseItem item, BaseSprite sprite, SpriteBatch spriteBatch)
        {
            this.item = item;
            this.sprite = sprite;
            this.spriteBatch = spriteBatch;
        }
        
        #endregion
        
        #region Method Region
        #endregion

        #region Virtual Method region
        
        public virtual void Update(GameTime gameTime)
        {
            sprite.Update(gameTime);
        }
        
        public virtual void Draw(GameTime gameTime)
        {
            sprite.Draw(gameTime);
        }

        #endregion
    }
}